package com.godz.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("index2item")
//我的项目
public class index2Item {
    @TableId(type = IdType.AUTO) //加了auto代表自增的id
    private Integer id;
    private String itemName;
    private String itemFirst;//项目介绍第一段
    private String itemSecond;//项目介绍第二段
    private String itemImg1;
    private String itemImg2;
    @JSONField(format = "yyyy-MM-dd")
    private Date itemDate;

}
